//
//  UILabel+YCBusiness.m
//  Pods-YCBaseModule_Example
//
//  Created by Apple on 2022/11/2.
//

#import "UILabel+YCBusiness.h"

@implementation UILabel (YCBusiness)

/// 创建12字体居左Lable
/// @param text 默认文字
+ (instancetype)labelWithFontSize12AlignmentLeft:(NSString *)text
{
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectZero];
    lab.text = text;
    lab.font = [UIFont systemFontOfSize:12];
    lab.textColor = [UIColor colorWithRed:72/255.0 green:78/255.0 blue:94/255.0 alpha:1];
    lab.textAlignment = NSTextAlignmentLeft;
    return lab;
}

/// 创建12字体居中Lable
/// @param text 默认文字
+ (instancetype)labelWithFontSize12AlignmentCenter:(nullable NSString *)text
{
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectZero];
    lab.text = text;
    lab.font = [UIFont systemFontOfSize:12];
    lab.textColor = [UIColor colorWithRed:72/255.0 green:78/255.0 blue:94/255.0 alpha:1];
    lab.textAlignment = NSTextAlignmentCenter;
    return lab;
}

/// 创建12字体居右Lable
/// @param text 默认文字
+ (instancetype)labelWithFontSize12AlignmentRight:(nullable NSString *)text
{
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectZero];
    lab.text = text;
    lab.font = [UIFont systemFontOfSize:12];
    lab.textColor = [UIColor colorWithRed:72/255.0 green:78/255.0 blue:94/255.0 alpha:1];
    lab.textAlignment = NSTextAlignmentRight;
    return lab;
}

@end
